﻿{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">{%$class_data.grade_name%}{%$class_data.class_name%}{%$semester_data.semester_name%}课程表</p>
                    <span style="float:right; color:red;">启用日期： {%$start_time%} {%if $is_update=='1'%} <a href="index.php?a=syllabus.update&class_id={%$class_id%}&semester_id={%$semester_id%}&syllabus_double={%$syllabus_double%}"class="btn btn-success" style="float:right;">修改课程表</a>{%/if%}</span>
                </div>
                    <div class="box-body">
                        <table class="table table-bordered text-center" id="mytable">					 
								  <tr>
									 <td>节次</td>
									 {%foreach from=$week_lists key=key item=value%}
									 <td>{%$value%}</td>
									 {%/foreach%}
								  </tr>
								  {%foreach from=$out_am key=key item=value%}
								  <tr>
										 <td>{%$key%}</td>
										 {%foreach from=$value key=k item=v%}
										 <td>
											 {%$v.subject_name%}<br/>{%$v.staff_name%}
										 </td>
										 {%/foreach%}
								 </tr>
								 {%/foreach%}

								  <tr>
								        <td></td>
								  </tr>
								  {%foreach from=$out_pm key=key item=value%}
								  <tr>
										 <td>{%$key%}</td>
										 {%foreach from=$value key=k item=v%}
										 <td>
											 {%$v.subject_name%}<br/>{%$v.staff_name%}
										 </td>
										 {%/foreach%}
								 </tr>
								 {%/foreach%}
                         </table>  
				    </div><!--box-body -->
                    <div class="box-footer">
                         <a href="index.php?a=syllabus.infolist&class_id={%$class_id%}" class="btn btn-success" style="float:right;">查看往期课程表>></a>
                    </div>
             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
 {%include file="index.footer.tpl.php"%}

